package fr.afcepf.qualimetrie;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
@Stateless
public class UserDataImpl implements IUserData {
    @PersistenceContext(unitName="Qualimetrie-data")
    EntityManager em;
    @Override
    public int add(Users paramUser) {
        em.persist(paramUser);
        em.flush();
        int retour = paramUser.getId();
        return retour;
    }

}
